# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=py3-ffmpeg
_pkgname=ffmpeg-python
pkgver=0.2.0
pkgrel=3
pkgdesc="Python bindings for FFmpeg"
url="https://github.com/kkroening/ffmpeg-python"
arch="noarch"
license="Apache-2.0"
depends="ffmpeg py3-future"
makedepends="py3-setuptools"
options="!check" # test fails
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kkroening/ffmpeg-python/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare
	sed -e '/pytest-runner/d' -i setup.py
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
933ed958d61536bbbc0e0b08e19521c4b1f7df1cfe97de0b3d149a2748c5bd74915a3134861e8ecb1f92d5860315228b76aefcd087fcf07e188a56c651f5e301  py3-ffmpeg-0.2.0.tar.gz
"
